package Transformation;

import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author 
 */
public class OperationChange {
	
    private String name;
    private String newName;
    private Modification modificationTypeName;
    private List<ParameterChange> parameterChanges;
    
    public static enum Modification {RENAME, DELETE, ONLYPARAMETERCHANGES };

    public OperationChange() {
    }

    public Modification getModificationTypeName() {
        return modificationTypeName;
    }

    public void setModificationTypeName(Modification modificationTypeName) {
        this.modificationTypeName = modificationTypeName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNewName() {
        return newName;
    }

    public void setNewName(String newName) {
        this.newName = newName;
    }

    public List<ParameterChange> getParameterChanges() {
        return parameterChanges;
    }

    public void setParameterChanges(List<ParameterChange> parameterChanges) {
        this.parameterChanges = parameterChanges;
    }
    
    public void addParameter(ParameterChange parameter) {
        if(this.parameterChanges == null){
            this.parameterChanges = new LinkedList<ParameterChange>();
        }
        this.parameterChanges.add(parameter);
    }

}
